//
//  SINAStuSelectSchoolTableViewCell.m
//  sinashebao
//
//  Created by  androidlongs on 2018/1/29.
//  Copyright © 2018年  androidlongs. All rights reserved.
//

#import "SINAStuSelectSchoolTableViewCell.h"
#import "SINAUiviewClickLiserner.h"

@interface SINAStuSelectSchoolTableViewCell()

@property (weak, nonatomic) IBOutlet UILabel *schoolNameLabel;

@end

@implementation SINAStuSelectSchoolTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    
}
-(void)setSchoolModel:(SINASchoolModel *)schoolModel{
    _schoolModel = schoolModel;
    
    self.schoolNameLabel.text = schoolModel.schoolName;
    WeakSelf;
    [[SINAUiviewClickLiserner alloc]viewClickFunction:self.schoolNameLabel andWithBlick:^(UIView *view) {
        if (weakSelf.itemClickBlock) {
            weakSelf.itemClickBlock(weakSelf.pos);
        }
    }];
}
@end
